package com.zzzy.common.enums;

import lombok.Getter;

/**
 * @Description: 请求结果枚举类
 * @Author fc
 * @Date 2021/5/27
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS("200", "成功"),
    WARNING("201", "警告信息"),
    CUSTOM_WARNING("202", "自定义返回码，用于处理特殊业务需求"),
    FORBIDDEN("403", "访问受限，授权过期"),
    SERVICE_UNAVAILABLE("503 ", "服务器忙，请稍后重试"),
    BUSINESS_ERROR("530", "业务处理失败"),
    OTHER_ERROR("550", "服务器忙，请联系管理员"),
    ;

    ResultCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code;
    private String message;
}
